home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / Xconq 7.0d37 / lib / mormon.g < prev    next >
Text File  |  1995-05-04  |  6KB  |  241 lines

  1. (game-module "mormon"
  2.   (title "mormon")
  3.   (blurb "The heroic age of the heroic Mormon pioneers")
  4.   (variants (world-seen) (see-all true))
  5.   )
  6.  
  7. (unit-type mormon (char "m") (help ""))
  8. (unit-type avenging-angel (name "avenging angel") (char "A") (help ""))
  9. (unit-type prophet (char "P") (help ""))
  10. (unit-type army (char "a") (help ""))
  11. (unit-type ute (name "Ute") (char "u") (help ""))
  12. (unit-type fort (char "/") (help "where the army hangs out"))
  13. (unit-type settlement (char "*") (help ""))
  14. (unit-type temple (char "@") (help ""))
  15.  
  16. (material-type water (help "very scarce in Utah"))
  17.  
  18. (terrain-type lake (char ".") (color "sky blue"))
  19. (terrain-type river (char ",") (color "cyan"))
  20. (terrain-type valley (char "+") (color "green"))
  21. (terrain-type forest (char "%") (color "forest green"))
  22. (terrain-type desert (char "~") (color "yellow"))
  23. (terrain-type mountains (char "^") (color "sienna"))
  24. (terrain-type salt-flat (char "_") (color "white"))
  25. (terrain-type not-Utah (char ":") (color "black"))
  26.  
  27. (add mormon image-name "man")
  28. (add avenging-angel image-name "trooper")
  29. (add prophet image-name "man")
  30. (add army image-name "cavalry")
  31. (add ute image-name "archer")
  32. (add fort image-name "walltown")
  33. (add settlement image-name "walltown")
  34. (add temple image-name "city18")
  35.  
  36. ;;; Static relationships.
  37.  
  38. (table vanishes-on
  39.   (u* (lake not-Utah) true)
  40.   )
  41.  
  42. (add (fort settlement temple) capacity 10)
  43.  
  44. (table unit-capacity-x
  45.   (fort army 6)
  46.   ((settlement temple) army 1)
  47.   )
  48.  
  49. (table unit-size-as-occupant
  50.   (u* u* 100) ; disables occupancy usually
  51.   ((mormon avenging-angel prophet) (fort settlement temple) 1)
  52.   )
  53.  
  54. (table unit-size-in-terrain
  55.   (u* t* 1)
  56.   ((settlement temple) t* 4)
  57.   )
  58.  
  59. (add t* capacity 4)
  60.  
  61. ;;; Unit-material capacities.
  62.  
  63. (table unit-storage-x
  64.   (u* water 2)
  65.   (army water 4)
  66.   ((fort settlement temple) water 100)
  67.   )
  68.  
  69. ;;; Actions.
  70.  
  71. ;;;; scale should be 15 km?
  72.  
  73. (add (mormon avenging-angel army ute prophet) acp-per-turn (2 4 4 4 6))
  74.  
  75. ;;; Movement.
  76.  
  77. (table mp-to-enter-terrain
  78.   (u* (lake not-Utah) 99)
  79.   )
  80.  
  81. ;;; Construction.
  82.  
  83. (table acp-to-create
  84.   (prophet mormon 6)
  85.   (mormon mormon 2)
  86.   ;; work on these
  87. ;  (mormon settlement 20)
  88. ;  (army fort 20)
  89.   )
  90.  
  91. (table supply-on-creation
  92.   ;; Minimal water supply is free.
  93.   (u* water 1)
  94.   )
  95.  
  96. (table base-production
  97.   (u* water 1)
  98.   )
  99.  
  100. (table productivity
  101.   (u* t* 0)
  102.   (u* (valley river) 100)  ; note that the lake is salt, so useless
  103.   (army mountains 50)
  104.   (ute t* 100)
  105.   (ute salt-flat 0)
  106.   (u* valley 100)
  107.   )
  108.  
  109. (table base-consumption
  110.   (u* water 1)
  111.   )
  112.  
  113. (table hp-per-starve
  114.   ;; Might be able to do without water, but not for long.
  115.   (u* water 0.50)
  116.   )
  117.  
  118. (table unit-initial-supply
  119.   (u* water 9999)
  120.   )
  121.  
  122. ;"dies of thirst" (mormon avenging-angel a) starve-message
  123.  
  124. ;;; Combat.
  125.  
  126. (add u* hp (4 4 2 4 2 16 16 16))
  127.  
  128. (table hit-chance
  129.   (u* u* 50)
  130.   (mormon army 5)
  131.   ((army ute) mormon 95)  ; the army misses occasionally
  132.   ((army ute) prophet 50)  ; prophet is wily
  133.   (army avenging-angel 30)
  134.   (avenging-angel army 50)      ; avenging angels are only way to hit back
  135.   )
  136.  
  137. (table damage (u* u* 1))
  138.  
  139. (table capture-chance
  140.   (army (settlement temple) (10 5))
  141.   )
  142.  
  143. ;5000 army siege
  144.  
  145. (add u* initial-seen-radius 4)
  146.  
  147. ;;; Scoring.
  148.  
  149. (scorekeeper (do last-side-wins))
  150.  
  151. (world 50)  ; hexagon would be better
  152.  
  153. (area 50 42)
  154.  
  155. (area (terrain
  156.   "50h"
  157.   "6ecfcfc2af33h3e"
  158.   "2f5ecfcf2a2f32h2ef"
  159.   "8ecfcfafd33h2e"
  160.   "4e2a3ecfc2fdf32hef"
  161.   "e2g2e2a2ecf2c2fd33he"
  162.   "fe2ge3aeacf2cfdf32he"
  163.   "2e3ge4aecf2cfd33h"
  164.   "fe4ge3aecf3cdf32h"
  165.   "he3gfge3aecf4c10dc3e18h"
  166.   "he3gfge2ae2acf3c2d7f2dc2e18h"
  167.   "2he5g2e3aecf2cd10fce2b17h"
  168.   "2h2e4g3ea2ecf3c3d6fc2ebe17h"
  169.   "3he3g3ef2efcf2cf3dc5ece2b2e16h"
  170.   "3h2e3g3efefecfc2d3c7eb3e16h"
  171.   "4h2e2g3ef2efacfcfdf9eb3e15h"
  172.   "4h4eg3efefeacfcfd2f7eb3e15h"
  173.   "5h7ef3eacfc2fd4f4ebe3f14h"
  174.   "5h4ef7ecfc2efce4f2ebefdf14h"
  175.   "6h4ef4efecfefefece4febefd2f13h"
  176.   "6h2ef2ef4efcef2efe2c3efebef2df13h"
  177.   "7h2efef6efefef5ec2ebefd3f12h"
  178.   "7h2ef2ef2e2cef2efef8ebe2f2e12h"
  179.   "8h2efef2e3c2ef2e2f5ecebe2f2eb11h"
  180.   "8h2ef4e3cecfce2f7ebe2f2eb11h"
  181.   "9h5ea6ece2f7ecbefe2be10h"
  182.   "9h3efea5efc3ef7eb3eb2e10h"
  183.   "10h2efea4ecfecfef8eb2eb3e9h"
  184.   "10hefef2ef5ec11eb2ebefe9h"
  185.   "11hefefef4e2f6ef5ebeb2efe8h"
  186.   "11hef2ef4ec2ef5e2f5e2b2efe8h"
  187.   "12hefe2f4ef2e2f4ef5eb6e7h"
  188.   "12h2e2f6efef2ef2e2f4eb6e7h"
  189.   "13h2f5ec2f5ef2ef3e2b3e2f2e6h"
  190.   "13h5ec2e2f5ef2ef2e2b4e3fe6h"
  191.   "14h6ec2f11eb6e2f2e5h"
  192.   "14h3ef3ef11e2b10e5h"
  193.   "15h2efe2cf11ebe5b6e4h"
  194.   "15h2efec11e3b6e6b4h"
  195.   "16h3ec11eb15e3h"
  196.   "16h10ec4eb2e2f11e3h"
  197.   "50h"
  198. ))
  199.  
  200. (side 1 (name "US"))
  201.  
  202. (side 2 (noun "Mormon"))
  203.  
  204. (fort 14 31 1 (n "Ft Douglas"))
  205. (army 14 31 1 (in "Ft Douglas"))
  206. (army 14 31 1 (in "Ft Douglas"))
  207. (army 14 31 1 (in "Ft Douglas"))
  208. (army 14 31 1 (in "Ft Douglas"))
  209. (army 14 31 1 (in "Ft Douglas"))
  210. (army 14 31 1 (in "Ft Douglas"))
  211.  
  212. (temple 14 30 2 (n "Salt Lake City"))
  213. (prophet 14 30 2 (n "Brigham Young") (in "Salt Lake City"))
  214. (avenging-angel 14 30 2 (in "Salt Lake City"))
  215. (mormon 14 30 2 (in "Salt Lake City"))
  216.  
  217. (settlement 15 27 2 (n "Orem"))
  218. (settlement 17 25 2 (n "Provo"))
  219. (settlement 14 29 2 (n "Sandy"))
  220. (settlement 12 32 2 (n "Ogden"))
  221.  
  222. (game-module (instructions (
  223.   "The Mormons should try to reproduce themselves "
  224.   "and spread out as much as possible "
  225.   "before the cavalry catches up with them."
  226.   "Use the Avenging Angels to ambush the cavs."
  227.   ""
  228.   "The US cavalry just has to kill as many Mormons "
  229.   "as fast as they can."
  230.   )))
  231.  
  232. (game-module (notes (
  233.   "Can the US army kill all the Mormons before they overpopulate Utah?"
  234.   ""
  235.   "(This is all a joke of course.)"
  236.   )))
  237.  
  238. (game-module (design-notes (
  239.   "Needs some cleanup and balancing work"
  240.   )))
  241.